package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class AppListBean implements IJsonParser, Serializable {
	
	private List<AppBean> apps;
	
	public List<AppBean> getApps() {
		return apps;
	}

	public void setApps(List<AppBean> apps) {
		this.apps = apps;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, AppListBean.class);
		}
		return null;
	}

}
